package com.fanshuai.controller;

import com.fanshuai.service.MailService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MailController {
    @Resource
    private MailService mailService;

    @RequestMapping(value = "/testmail", method = RequestMethod.GET)
    public String mail() {
        mailService.mail("myselffan1@163.com", "haha", "haha");
        return "OK";
    }
}
